The movement of tests to the main `target` directory forgot to update a spot
where rustdoc used a -L flag.
let mut p = compile.process("rustdoc")
.arg("--test").arg(lib)
.arg("--crate-name").arg(name)
- .arg("-L").arg("target/test")
- .arg("-L").arg("target/test/deps")
+ .arg("-L").arg(&compile.root_output)
+ .arg("-L").arg(&compile.deps_output)
.cwd(package.get_root());
// FIXME(rust-lang/rust#16272): this should just always be passed.
[dependencies.foo]
path = "../foo"
-
- [lib]
- name = "bar"
- doctest = false
"#)
.file("src/lib.rs", "
extern crate foo;
+ /// ```
+ /// bar::bar();
+ /// ```
+ pub fn bar() {}
+
#[test]
fn bar_test() {
foo::foo();
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured
+{doctest} bar
+
+running 1 test
+test bar_0 ... ok
+
+test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured
+
",
compiling = COMPILING, running = RUNNING,
+ doctest = DOCTEST,
dir = p.url()).as_slice()));
})